package zhizhemodi.tech.short_term_bwork.tool;

public enum ResultCode {
    SUCCESS(200, "成功"),
    FAIL(404, "失败"),
    VALIDATE_FAILED(404, "参数验证失败"),
    UNAUTHORIZED(401, "未登录或token已过期"),
    FORBIDDEN(403, "没有操作权限"),
    ;

    private Integer code;
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
